﻿using System;
using System.Xml.Serialization;

namespace NetBay.Core.BusinessEntities.Workflow.Rules
{
    [XmlTypeAttribute(AnonymousType = true, TypeName = "Condition")]
    [Serializable]
    public class Condition
    {
        [XmlAttributeAttribute()]
        public Target Target { get; set; }

        [XmlAttributeAttribute()]
        public bool IsFinalState { get; set; }

        [XmlAttributeAttribute()]
        public SelectionMode StateMode { get; set; }

        [XmlAttributeAttribute()]
        public WorkflowState NewState { get; set; }

        [XmlElement]
        public If If { get; set; }
    }
}
